﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Collections;
using DAO;
namespace BUS
{
   public class SanBayBUS
    {
       public DataTable layDanhSachSanBay(string maSanBayDi)
       {
           SanBayDAO dao = new SanBayDAO();
           return dao.layDanhSachSanBay(maSanBayDi);
       }
       public DataTable loadSanBayDen()
       {
           try
           {
               SanBayDAO dao = new SanBayDAO();
               return dao.loadSanBayDen();
           }
           catch (Exception ex)
           {
               return null;
           }
       }
       public DataTable loadSanBayDen(string maSanBay)
       {
           try
           {
               SanBayDAO dao = new SanBayDAO();
               return dao.loadSanBayDen(maSanBay);
           }
           catch (Exception ex)
           {
               return null;
           }
       }
       public DataTable loadSanBayDi()
       {
           try
           {
               SanBayDAO dao = new SanBayDAO();
               return dao.loadSanBayDi();
           }
           catch (Exception ex)
           {
               return null;
           }
       }
       public DataTable loadSanBayDi(string maSanBay)
       {
           try
           {
               SanBayDAO dao = new SanBayDAO();
               DataTable dt = new DataTable();
               return dao.loadSanBayDi(maSanBay);
           }
           catch (Exception ex)
           {
               return null;
           }

         
       }
    }
}
